package com.wanmait.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanmait.community.entity.AdminRepair;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;

public interface AdminRepairMapper extends BaseMapper<AdminRepair> {
    List<AdminRepair> selectAdminRepairInfo(@Param("adminRepair")AdminRepair adminRepair, @Param("endCreatTime")Date endCreatTime, @Param("endUpdateTime")Date endUpdateTime);
    void insertAdminRepair (AdminRepair adminRepair);
    AdminRepair findAdminRepairById(@Param("id")Integer id);
    void updateAdminRepairById(AdminRepair adminRepair);
    void deleteAdminRepairById(@Param("id")Integer id);
    void updateHandleRepair(AdminRepair adminRepair);//员工处理报修
    void updateRepairStatus(Integer id);//根据repairFollow的score判断是否修改repairStatus
    void updateFollowStatusById(Integer id);//修改回访状态为1已回访
}